<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet  version="2.0"
	xmlns="http://www.w3.org/1999/xhtml"
	xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
	xmlns:xf="http://www.w3.org/2002/xforms">
	
	<xsl:output media-type="application/xhtml+xml" method="xml" 
		encoding="UTF-8" version="1.0" indent="yes" omit-xml-declaration="no"/>
	
	<xsl:template name="GenerateNumericTypeElements">
		<xsl:param name="element.ref" />
		<xsl:param name="element.den" required="yes" />
		<xsl:param name="businessterm" />
		
		<xsl:element name="div">
			<xsl:attribute name="class" select="replace( replace( $element.den, ' ', '' ), '\.', '__' )"/>
			<xsl:element name="xf:input">
				<xsl:attribute name="ref"><xsl:value-of select="$element.ref" /></xsl:attribute>
				<xsl:element name="xf:label"><xsl:value-of select="$businessterm" /></xsl:element>
			</xsl:element>
		</xsl:element>
		
	</xsl:template>
	
</xsl:stylesheet>
